package com.ruoyi.project.system.categorydetails.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 用户的分类编辑下拉的类别分类列对象 category_details
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class CategoryDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 网站的名称（来自application表） */
    @Excel(name = "网站的名称", readConverterExp = "来=自application表")
    private String name;

    /** 关联类别的id（0为默认应用，初次注册登录用户从系统获取默认应用） */
    @Excel(name = "关联类别的id", readConverterExp = "0=为默认应用，初次注册登录用户从系统获取默认应用")
    private Long categoryId;

    /** 关联到的用户id */
    @Excel(name = "关联到的用户id")
    private Long userId;

    /** 用来区分application表：0system 1user */
    @Excel(name = "用来区分application表：0system 1user")
    private String tableId;

    /** 关联到的网站id */
    @Excel(name = "关联到的网站id")
    private Long appId;

    /** 是否置顶：0默认 1置顶 */
    @Excel(name = "是否置顶：0默认 1置顶")
    private String top;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    /** 排序或置顶用的时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "排序或置顶用的时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date sortTime;

    /** 是否删除：0存在 1删除 */
    @Excel(name = "是否删除：0存在 1删除")
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setTableId(String tableId)
    {
        this.tableId = tableId;
    }

    public String getTableId()
    {
        return tableId;
    }
    public void setAppId(Long appId)
    {
        this.appId = appId;
    }

    public Long getAppId()
    {
        return appId;
    }
    public void setTop(String top)
    {
        this.top = top;
    }

    public String getTop()
    {
        return top;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }
    public void setSortTime(Date sortTime)
    {
        this.sortTime = sortTime;
    }

    public Date getSortTime()
    {
        return sortTime;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("categoryId", getCategoryId())
            .append("userId", getUserId())
            .append("tableId", getTableId())
            .append("appId", getAppId())
            .append("top", getTop())
            .append("addtime", getAddtime())
            .append("sortTime", getSortTime())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
